package com.qr.bean.wmyw;

import java.sql.Timestamp;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
/**
 * @author: zc
 * email: zc8023zs@163.com
 * create_time: 2020/8/13 10:20:45
 * 分离出查询实体
 */
@ApiModel(value = "qr_amount_record", description = "资金记录")
@TableName(value = "qr_amount_record")
public class QrAmountRecordView implements Serializable {
	@ApiModelProperty(value = "标识")
	@TableId(type = IdType.AUTO,value = "amount_id")
	@NotNull(message = "标识不能为空")
	private Integer amount_id;
	@ApiModelProperty(value = "运营中心id")
	@TableField(value="oc_id")
	private Integer oc_id;
	@ApiModelProperty(value = "店铺/门店id")
	@TableField(value="shop_id")
	private Integer shop_id;
	@ApiModelProperty(value = "发生时间")
	@TableField(value="create_time")
	@NotNull(message = "发生时间不能为空")
	private Timestamp create_time;
	@ApiModelProperty(value = "余额")
	@TableField(value="amount")
	@NotNull(message = "余额不能为空")
	private BigDecimal amount;
	@ApiModelProperty(value = "发生额")
	@TableField(value="trade_amount")
	private BigDecimal trade_amount;
	@ApiModelProperty(value = "可用金额")
	@TableField(value="before_amount")
	@NotNull(message = "可用金额不能为空")
	private BigDecimal before_amount;
	@ApiModelProperty(value = "科目:提现=1 结转=2")
	@TableField(value="trade_subject")
	@NotNull(message = "科目不能为空")
	private Integer trade_subject;
	@ApiModelProperty(value = "备注")
	@TableField(value="note")
	private String note;
	@ApiModelProperty(value = "提现记录id")
	@TableField(value="extraction_record_id")
	private Integer extraction_record_id;
	@ApiModelProperty(value = "订单id")
	@TableField(value="order_record_id")
	private Integer order_record_id;
	@ApiModelProperty(value = "乐观锁标识")
	@TableField(value="version_id")
	@Version
	private Integer version_id;

 
	public Integer getAmount_id() {
		return amount_id;
	}
	public void setAmount_id(Integer amount_id) {
		this.amount_id = amount_id;
	}
 
	public Integer getOc_id() {
		return oc_id;
	}
	public void setOc_id(Integer oc_id) {
		this.oc_id = oc_id;
	}
 
	public Integer getShop_id() {
		return shop_id;
	}
	public void setShop_id(Integer shop_id) {
		this.shop_id = shop_id;
	}
 
	public Timestamp getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Timestamp create_time) {
		this.create_time = create_time;
	}
 
	public BigDecimal getAmount() {
		return amount;
	}
	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}
 
	public BigDecimal getTrade_amount() {
		return trade_amount;
	}
	public void setTrade_amount(BigDecimal trade_amount) {
		this.trade_amount = trade_amount;
	}
 
	public BigDecimal getBefore_amount() {
		return before_amount;
	}
	public void setBefore_amount(BigDecimal before_amount) {
		this.before_amount = before_amount;
	}
 
	public Integer getTrade_subject() {
		return trade_subject;
	}
	public void setTrade_subject(Integer trade_subject) {
		this.trade_subject = trade_subject;
	}
 
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
 
	public Integer getExtraction_record_id() {
		return extraction_record_id;
	}
	public void setExtraction_record_id(Integer extraction_record_id) {
		this.extraction_record_id = extraction_record_id;
	}
 
	public Integer getOrder_record_id() {
		return order_record_id;
	}
	public void setOrder_record_id(Integer order_record_id) {
		this.order_record_id = order_record_id;
	}
 
	public Integer getVersion_id() {
		return version_id;
	}
	public void setVersion_id(Integer version_id) {
		this.version_id = version_id;
	}

}